<div class="error-message">
<?php
if($session->check('Message.auth'))
$session->flash('auth');
?>
</div>

<div class="actions">
<?php 
  echo "Welcome";
  if ($session->check('Auth.User.username')) {
  	echo ", ".$session->read('Auth.User.username')."!";
  }
  else {
  	echo "!";
  }
/*?>
<ul>
<?php if($session->check('Auth.User.id')) : ?>
<li><?php echo $html->link(__('Users', true), array('controller' => 'users', 'action'=>'index')); ?></li>
<li><?php echo $html->link(__('Roles', true), array('controller'=> 'roles', 'action'=>'index')); ?> </li>
<li><?php echo $html->link(__('Acl', true), array('controller'=> 'roles', 'action'=>'acl')); ?> </li>
<li><?php echo $html->link(__('Logout', true), array('controller'=> 'users', 'action'=>'logout')); ?> </li>
<?php else :?>
<li><?php echo $html->link(__('Sign in', true), array('controller'=> 'users', 'action'=>'login')); ?> </li>
<li><?php echo $html->link(__('Register', true), array('controller'=> 'users', 'action'=>'register')); ?> </li>
<?php endif;?>
</ul>
<?php */?>
</div>
